import request from '@/config/axios';

// 查询（精简)列表
export const getSimpleApiList = async () => {
  return await request.get({ url: '/infomation/meta-data-info/simple-list' });
};

// 查询列表
export const getApiPage = async (params: any) => {
  return await request.get({ url: '/infomation/meta-data-info/page', params });
};

// 查询详情
export const getApi = async (id: number) => {
  return await request.get({ url: '/infomation/meta-data-info/get?id=' + id });
};

// 新增
export const createApi = async (data: any) => {
  return await request.post({ url: '/infomation/meta-data-info/create', data: data });
};

// 修改
export const updateApi = async (params: any) => {
  return await request.put({ url: '/infomation/meta-data-info/update', data: params });
};

// 删除
export const deleteApi = async (id: any) => {
  return await request.delete({ url: '/infomation/meta-data-info/delete?id=' + id });
};
